package com.jdy.hotel.support.view;

import android.view.View;

import androidx.annotation.StringRes;

import com.jdy.hotel.App;

public class BaseViewItem implements IView{
    private final View mView;
    private final String title;

    public BaseViewItem(View view, @StringRes int title){
        this(view, App.getInstance().getString(title));
    }

    public BaseViewItem(View view, String title){
        mView = view;
        this.title = title;
    }

    @Override
    public View getView() {
        return mView;
    }

    @Override
    public String getTitle() {
        return title;
    }
}
